import serial
import time


ser = serial.Serial('/dev/ttyS0', 115200, timeout = 0.1)
while True:
    ser.write('hello\n'.encode('ascii'))
    time.sleep(1)

#while True:
#   data = ser.read_all()
#  if data:
#     print(data.decode('utf-8'))
